package com.sunday.boot3.user.center.rest.vo.permissions;

import com.sunday.common.core.gson.GsonUtils;
import com.sunday.common.core.remoting.base.auth.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * @Description: 批量保存 请求 DTO
 * @author: zsy
 * @Create: 2024/09/20 15:13:06
 */
@Data
public class SaveBatchPermissionsReqVO extends BaseDTO {

    /**
     * 批量保存参数
     */
    @NotEmpty
    @Size(min = 1, max = 100)
    @Schema(description = "批量保存参数")
    private List<SavePermissionsReqVO> permissionsReqDTOS;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
